package com.yupi.springbootinit.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 版次工序计划表
 */
@TableName(value = "process_batch_step")
@Data
public class ProcessBatchStep implements Serializable {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("batch_id")
    private Long batchId;

    @TableField("process_sheet_step_id")
    private Long processSheetStepId;

    @TableField("sequence_no")
    private Integer sequenceNo;

    @TableField("operation_id")
    private Long operationId;

    @TableField("operation_code")
    private String operationCode;

    @TableField("operation_name")
    private String operationName;

    @TableField("process_requirement")
    private String processRequirement;


    @TableField("inspection_method")
    private String inspectionMethod;

    @TableField("inspection_criteria")
    private String inspectionCriteria;

    @TableField("expected_duration_minutes")
    private Integer expectedDurationMinutes;

    @TableField("plan_start")
    private LocalDateTime planStart;

    @TableField("plan_end")
    private LocalDateTime planEnd;

    @TableField("need_inspection")
    private Integer needInspection;

    @TableField("status")
    private String status;

    @TableField("actual_start")
    private LocalDateTime actualStart;

    @TableField("operator_name")
    private String operatorName;

    @TableField("actual_end")
    private LocalDateTime actualEnd;

    @Version
    @TableField("version")
    private Integer version;

    private String remark;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableLogic
    @TableField("is_deleted")
    private Integer isDeleted;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}